
Version:=2.11
ModuleName:=mii-diag

Objcet:=$(ModuleName).tar.gz
ObjectDir:=$(ModuleName)-$(Version).orig
ObjcetSource:=$(ModuleName)_$(Version).orig.tar.gz

DependFiles:=

InstallDir:=

.PHONY: all clean dist_clean

all:$(Objcet)

$(Objcet): $(ObjcetSource) 
	tar -xzf $(ObjcetSource)
	cd $(ObjectDir);gcc -Wall -Wstrict-prototypes -O mii-diag.c libmii.c -o mii-diag ;\
	cp mii-diag ../
	tar -czf $(Objcet) mii-diag
clean:
	rm -rf $(ObjcetDir)/mii-diag  $(Objcet) mii-diag

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjcetSource)
	
include ../../Makefile.Res
